const app = getApp()

module.exports = Behavior({
  properties: {
    addressChecked: {
      type: null,
      value: null,
      observer(newval, oldval) {
        let newValIsNull = (Object.prototype.toString.call(newval) === '[object Null]')
        if (this.$relationParent && this.$relationParent.addressCheckedSet) {
          console.d('checkbox group change')
          this.$relationParent.addressCheckedSet(this, newval, oldval, newValIsNull)
        }
      }
    }
  }
})
